package com.example.inter.tourdemo.utils;

import android.app.Application;
import android.content.Context;

/**
 * Created by Inter巩海亮 on 2017-03-29.
 * 微信:
 * QQ号:
 * 邮箱:dahaizhiliang@126.com
 * 获取全局的context
 *
 */

public class MyApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        context = getApplicationContext();
    }

    public static Context getContext() {
        return context;
    }
}
